package com.wanxi.feign.clients;

import com.wanxi.common.entity.NewsTypeModel;
import com.wanxi.common.result.ResultDTO;
import com.wanxi.feign.fallback.NewstypeFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "newstypeservice",fallback = NewstypeFeignFallback.class)
public interface NewstypeFeignClient {

    @RequestMapping("/back/newsType/findNewsTypeById")
    NewsTypeModel findNewsTypeById(@RequestParam("id")Long id);

}
